package org.eduapp.trains.dao.order;

import java.util.List;

import org.eduapp.trains.DAOException;
import org.eduapp.trains.dao.BaseDAO;
import org.eduapp.trains.model.account.ModelAccount;
import org.eduapp.trains.model.order.ModelOrder;
import org.eduapp.trains.web.support.PaginationSupport;

/**
 * 
 * @author jeccy
 *
 */
public interface OrderDAO extends BaseDAO<ModelOrder> {
	
	/**
	 * get orders by pager
	 * @param model
	 * @param pageSize
	 * @param offset
	 * @param order
	 * @param isDesc
	 * @return
	 * @throws DAOException
	 */
	PaginationSupport<ModelOrder> get (ModelOrder model,
			int pageSize, int offset, String order, Boolean isDesc) throws DAOException;


	PaginationSupport<ModelOrder> get(ModelOrder model, String ids,
			int pageSize, int startIndex, String order, Boolean isDesc)
			throws DAOException;

}
